export const ErrorLevel = {
    error: "Error",
    warning: "Warning"
};

export const ErrorCategory = {
    event: "event",
    memory: "memory"
};

export const ErrorDefinition = {
    incorrectEventOrder: {
        // rts要求，同一个event，必须先下发send再下发wait，否则会产生device卡死
        level: ErrorLevel.error,
        category: ErrorCategory.event,
        summary: {
            zh: "Event下发次序错误（Wait Event 在 Send Event之前下发）",
            en: "Event wait before send"
        }
    },
    eventNotPair: {
        level: ErrorLevel.error,
        category: ErrorCategory.event,
        summary: {
            zh: "Send/Wait event 未配对",
            en: "Event not pair"
        }
    },
    /* todo
        useBeforeEventSync: {
            // 在Event同步前使用了内存。在流A申请的内存未经Event同步，便在流B使用
            level: ErrorLevel.error,
            category: ErrorCategory.memory,
            summary: {
                zh: "未经Event同步便跨流使用内存",
                en: "Use memory cross streams before event synchronization"
            }
        },
     */
};